import request from '@/utils/request'

export function submitRefund(data) {
  return request({
    url: 'pay/refund/submitRefund',
    method: 'post',
    data
  })
}

export function refund(data) {
  return request({
    url: 'pay/refund/refund',
    method: 'post',
    data
  })
}

export function offlineRefund(data) {
  return request({
    url: 'pay/refund/offlineRefund',
    method: 'post',
    data
  })
}

export default { submitRefund, refund, offlineRefund }
